package com.ruoyi.project.system.service;

import com.ruoyi.project.system.domain.Member;
import com.ruoyi.project.system.domain.SysUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * [会员]Service接口
 * 
 * @author ruoyi
 * @date 2020-10-07
 */
public interface IMemberService 
{
    /**
     * 查询[会员]
     * 
     * @param id [会员]ID
     * @return [会员]
     */
    public Member selectMemberById(Integer id);

    /**
     * 查询[会员]列表
     * 
     * @param member [会员]
     * @return [会员]集合
     */
    public List<Member> selectMemberList(Member member);

    /**
     * 新增[会员]
     * 
     * @param member [会员]
     * @return 结果
     */
    public int insertMember(Member member);

    /**
     * 修改[会员]
     * 
     * @param member [会员]
     * @return 结果
     */
    public int updateMember(Member member);

    /**
     * 批量删除[会员]
     * 
     * @param ids 需要删除的[会员]ID
     * @return 结果
     */
    public int deleteMemberByIds(Integer[] ids);

    /**
     * 删除[会员]信息
     * 
     * @param id [会员]ID
     * @return 结果
     */
    public int deleteMemberById(Integer id);

    SysUser getUserByOpenid(String openid);

    Member getByOpenid(String openid);


    Integer updateMemberWxOpenId(int intValue);
}
